package com.dliyun.db.migration;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.sql.init.dependency.AbstractBeansOfTypeDatabaseInitializerDetector;

import java.util.Collections;
import java.util.Set;

@Slf4j
public class DbMigrationInitializerDetector extends AbstractBeansOfTypeDatabaseInitializerDetector {
    protected Set<Class<?>> getDatabaseInitializerBeanTypes() {
        return Collections.singleton(DbMigration.class);
    }

    public int getOrder() {
        return 1;
    }
}